package com.core.service.impl;

import com.common.dao.UserMapper;
import com.core.UserService;
import com.common.user.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public boolean login(User user) {

        boolean flag = false;
        System.out.println("service");
        User u = userMapper.getUser(user);
        if(u != null){
            flag = true;
        }
        return flag;
    }
}
